{% extends "myadmin/base/content_base.html" %}
{% block page_header %}
    系统设置
{% endblock %}
{% block content %}
    <tr>
        <th>#</th>

        <th>课节</th>
        <th>类型</th>
        <th>老师</th>
        <th>简介</th>
{#        <th>大纲</th>#}
        <th>时长</th>
        <th>封面</th>
        <th>审核状态</th>
        <th>逻辑删除</th>
    </tr>
    {% for obj in page_obj %}
        <tr>
            <td style="width: 40px" data-url="{% url 'myadmin:course_update' obj.id %}"><a href="#">{{ forloop.counter }}</a></td>
            <td>{{ obj.title }}</td>

            <td>{{ obj.category.name }}</td>
            <td>{{ obj.teacher.name }}</td>
            <td>{{ obj.profile|default:'无' }}</td>
{#            <td>{{ obj.outline|default:'无' }}</td>#}
            <td>{{ obj.duration }}</td>
            <td><img src="{{ obj.cover_url }}" alt="" style="width: 80px;height: 20px"></td>
            <td>{% if obj.is_pass %}是{% else %}否{% endif %}</td>
            <td>{% if obj.is_delete %}是{% else %}否{% endif %}</td>
        </tr>
    {% endfor %}
{% endblock %}